package br.ufpb.di.ppgi.negocio.modelo.participa;

import java.io.Serializable;

import javax.persistence.Embeddable;
import javax.persistence.ManyToOne;

import br.ufpb.di.ppgi.negocio.modelo.proposta.Proposta;
import br.ufpb.di.ppgi.negocio.modelo.usuario.Usuario;

@Embeddable
public class ParticipaPropostaPK implements Serializable{

	private static final long serialVersionUID = 6457705130779765340L;

	@ManyToOne(optional=false)
	private Usuario professor;
	
	@ManyToOne(optional=false)
	private Proposta proposta;

	public ParticipaPropostaPK() {
		
	}
	
	public ParticipaPropostaPK(Usuario professor, Proposta proposta) {
		super();
		this.professor = professor;
		this.proposta = proposta;
	}

	public Usuario getProfessor() {
		return professor;
	}

	public void setProfessor(Usuario professor) {
		this.professor = professor;
	}

	public Proposta getProposta() {
		return proposta;
	}

	public void setProposta(Proposta proposta) {
		this.proposta = proposta;
	}

		
	
}
